﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapClient.DataAccess.Models;

/// <summary>
/// 数据库实体类
/// </summary>
[Table("DummyEntity")]
public class DummyEntity
{
    /// <summary>
    /// 获得/设置 Id
    /// </summary>
    [Key]
    [DisplayName("Id")]
    [AutoGenerateColumn(Order = 1, Width = 100, Sortable = true, Filterable = true, Searchable = true, Align = Alignment.Center)]
    public string Id { get; set; }

    /// <summary>
    /// 获得/设置 Name
    /// </summary>
    [DisplayName("名称")]
    [AutoGenerateColumn(Order = 2, Sortable = true, Filterable = true, Searchable = true, Align = Alignment.Left)]
    public string? Name { get; set; }

    /// <summary>
    /// 获得/设置 Name
    /// </summary>
    [DisplayName("描述")]
    [AutoGenerateColumn(Order = 2, Sortable = true, Filterable = true, Searchable = true, Align = Alignment.Left)]
    public string? InfoA { get; set; }
}
